import { createRouter, createWebHashHistory } from 'vue-router'
// 引入其他组件...
const routes = [
  {
    path: '/',
    name: '',
    redirect: '/DataBoard'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/layout/Home.vue')
  },

  {
    path: '/dataBoard',
    name: 'DataBoard',
    component: () => import('../views/DataBoard/index.vue')
  },

  {
    path: '/businessData',
    name: 'BusinessData',
    component: () => import('../views/BusinessData/index.vue')
  }

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
